package com.nuoye.appletstyle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.app.ActivityManager;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;

import com.nuoye.appletstyle.databinding.ActivityTagBinding;

public class TagActivity extends AppCompatActivity {

    private ActivityTagBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this,R.layout.activity_tag);
        binding.imageBack.setOnClickListener(view -> {
            //onBackPressed();
            //finish();
            //finishAndRemoveTask();
        });
        if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
            setTaskDescription(new ActivityManager.TaskDescription("跳一跳", BitmapFactory.decodeResource(getResources(),R.drawable.ic_baseline_arrow_back_24)));
        }
    }
}